<template lang="">
  <div class="kupono-search">
    <div class="title-wrap">
      <RouteHeadLine />
      <div class="search-wrap">
        <el-form ref="formRef" :model="params" label-width="170">
          <el-row :gutter="190" style="margin-top: 25px">
            <el-col :span="6">
              <el-form-item label="行政区划：">
                <el-select v-model="params.a" clearable placeholder="请选择">
                  <el-option
                    class="select-item"
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  />
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="6"
              ><el-form-item label="危废类别：">
                <el-select v-model="params.a" clearable placeholder="请选择">
                  <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  />
                </el-select> </el-form-item
            ></el-col>
            <el-col :span="6">
              <el-form-item label="转移批次号：">
                <el-input v-model="params.b" clearable></el-input>
              </el-form-item>
            </el-col>
          </el-row>
          <el-row :gutter="190">
            <el-col :span="6">
              <el-form-item label="产废单位：">
                <el-input v-model="params.b" clearable></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="产废单位：">
                <el-input v-model="params.b" clearable></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6"
              ><el-form-item label="转移状态：">
                <el-select v-model="params.a" clearable placeholder="请选择">
                  <el-option
                    v-for="item in options"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value"
                  />
                </el-select> </el-form-item
            ></el-col>
          </el-row>
          <el-row :gutter="210">
            <el-col :span="6">
              <el-form-item label="转移开始日期：">
                <el-date-picker
                  v-model="params.q"
                  type="date"
                  placeholder="请选择"
                  clearable
                  format="YYYY-MM-DD"
                  value-format="YYYY-MM-DD"
              /></el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="转移结束日期：">
                <el-date-picker
                  v-model="params.q"
                  type="date"
                  placeholder="请选择"
                  clearable
                  format="YYYY-MM-DD"
                  value-format="YYYY-MM-DD"
              /></el-form-item>
            </el-col>
            <el-col :span="10">
              <div class="search-btn-wrap">
                <el-button
                  type="primary"
                  style="margin-left: 15px;"
                  :icon="ArrowLeft"
                  @click="handleSearch"
                  ><el-icon style="color: #fff; margin-right: 5px"
                    ><Search /></el-icon
                  >查询</el-button
                >
                <button class="export-page">导出本页</button>
                <button class="export-all">导出所有</button>
              </div>
            </el-col>
          </el-row>
        </el-form>
      </div>
    </div>
    <div class="data-wrap">
      <el-table
        :data="tableData"
        border
        class="table-height"
        style="width: 100%"
      >
        <el-table-column type="selection" align="center" />
        <el-table-column prop="date" align="center" label="产废单位" />
        <el-table-column prop="name" align="center" label="区域" />
        <el-table-column prop="address" align="center" label="接收单位" />
        <el-table-column prop="address" align="center" label="转移时间" />
        <el-table-column prop="address" align="center" label="废物名称" />
        <el-table-column prop="address" align="center" label="类别编号" />
        <el-table-column prop="address" align="center" label="转移量(吨)" />
        <el-table-column prop="address" align="center" label="转移量(只)" />
        <el-table-column prop="address" align="center" label="转移量(其他)" />
        <el-table-column prop="address" align="center" label="联单批次号" />
      </el-table>
      <div style="padding-right: 60px; margin-top: 25px">
        <Pagination
          :currentPage="params.currentPage"
          :total="total"
          :page-size="params.pageSize"
        />
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import Pagination from "@/components/Pagination.vue";
import RouteHeadLine from "@/components/RouteHeadLine.vue";
let params = reactive({});
let handleSearch = () => {};
let total = ref(11);
let tableData = ref([

]);
</script>
<style lang="scss" scoped>
.kupono-search {
  width: 100%;
  height: 100%;
  padding-left: 8px;
  overflow: hidden;
  .title-wrap {
    height: 243px;
    background: #ffffff;
    padding-top: 20px;

    /* width: 100%; */
    .search-wrap {
      padding-left: 35px;
      padding-right: 43px;
      .search-btn-wrap {
        display: flex;
        align-items: center;
        .export-page {
          width: 124px;
          height: 37px;
          background: #ff9c00;
          border-radius: 4px;

          font-family: Source Han Sans CN;
          font-weight: 500;
          font-size: 20px;
          color: #ffffff;
          margin-left: 28px;
        }
        .export-all {
          width: 124px;
          height: 37px;
          background: #02cf2d;
          border-radius: 4px;
          margin-left: 28px;
          font-weight: 500;
          font-size: 20px;
          color: #ffffff;
        }
      }
    }
  }
  .data-wrap {
    margin-top: 10px;
    width: 100%;
    height: calc(100vh - 80px - 10px - 243px);
    background: #fff;

    padding: 10px 8px 0 8px;
    .table-height {
      max-height: calc(100vh - 46.7vh);
      overflow-y: scroll;
    }
  }
}
</style>
